package com.scy.java.Test.Test05;

import java.util.Scanner;

//反向输出字符串
public class Test02 {
    public static void main(String[] args) {
        System.out.println("请输出字符串：");
        String str = new Scanner(System.in).next();
        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(str.length()-i-1);
            System.out.print(c);
        }
    }
}
